package com.welsy.iter.vo.iter
{
	import com.welsy.iter.vo.iter.pattern.*;
	import com.welsy.iter.business.IterQNames;
	
	
	[Bindable]
	public class IterElementVO extends CourseItem
	{
	    public var iterElementId:String = "";	
	    public var ParentIterElementId:String = "0";	    		    	
		public var type:String = "";			
		public var title:String = "";
		public var Description : String = "";		
		public var position:String = "0";		
		public var CreditsNumber:String = "0";		
		public var CourseId:String = "0";
		public var fileId:String = "0";		
		public var fileName:String = "";		
		public var CourseOnSiteId:String = "0";	
		public var Priority:String = "0"
      
      public function setProperties(item:XML):void {      	
		var elemPosition:String = item.child(IterQNames.qnElPosition); 
		var elemId:String = item.child(IterQNames.qnElElementID);						
		var elemParentIterId:String = item.child(IterQNames.qnIterElParentIterId);
		var elemTitle:String = item.child(IterQNames.qnTitle);
		var elemDescription:String = item.child(IterQNames.qnElDescription);		
		var elemType:String = item.child(IterQNames.qnElType);		
		var elemCourseId:String = item.child(IterQNames.qnElCourseId);
		var elemFileId:String = item.child(IterQNames.qnElFileId);
		var elemCourseOnSiteId:String = item.child(IterQNames.qnElCourseOnSiteId);		
		var elemFileName:String = item.child(IterQNames.qnElElementFileName);		
		var elemCreditsNumber:String = item.child(IterQNames.qnIterCreditsNumber);
		var elemPriority:String = item.child(IterQNames.qnIterElPriority);        
				
        this.iterElementId = elemId;	
        this.ParentIterElementId = elemParentIterId		
		this.title = elemTitle;
		this.Description = elemDescription;
		this.type = elemType;
		this.position = elemPosition;
		this.CourseId = elemCourseId;
		this.fileId = elemFileId;
		this.CourseOnSiteId = elemCourseOnSiteId;
		this.fileName = elemFileName;
		this.CreditsNumber = elemCreditsNumber
		this.Priority = elemPriority		        
      }
	}
}